CROSS_COMPILER=/home/prx/rk_linux/rk3566_linux_sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu

BUILD_ROOT=/home/prx/rk_linux/app/player/
LIB_PATH+=/home/prx/rk_linux/mylibs/

INC+=$(BUILD_ROOT)/include

SRC+=$(BUILD_ROOT)/source/main.c $(BUILD_ROOT)/source/camera/camera.c $(BUILD_ROOT)/source/venc/venc.c $(LIB_PATH)/librockchip_mpp.so

LIBS+=pthread

all:
	rm -rf player
	$(CROSS_COMPILER)-gcc $(SRC) -I$(INC) -L/home/prx/rk_linux/mylibs/ -l$(LIBS) -o player 
